//
//  TTNetworkInfo.h
//  TTBaseProject
//
//  Created by shny588 on 16/7/13.
//  Copyright © 2016年 tt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetWorking.h"

//网络连接状态发生变化
extern NSString * const TTNetworkingReachabilityDidChangeNotification;
//网络状态
extern NSString * const TTNetworkingReachabilityNotificationStatusItem;

@interface TTNetworkInfo : NSObject

+ (TTNetworkInfo *)shared;

// 是否连接到网络
- (BOOL)connectedToNetwork;
// 是否连接到wifi
- (BOOL)connectedToWiFi;
// 是否连接到手机网络
- (BOOL)connectedToCellNetwork;
//开始监控网络状态
- (void)startMonitoring;
//停止监控网络状态
- (void)stopMonitoring;

@end
